package com.zhao.pojo;

import com.zhao.annotation.DataExpression;
import com.zhao.annotation.DataExpressionRuler;
import com.zhao.annotation.DataMapping;
import com.zhao.annotation.DataValue;
import com.zhao.pojo.message.Project;
import lombok.Data;
import lombok.ToString;

/**
 * @Author:zhao
 * @Date: 2018/8/3 17:02
 * @Description:
 */
@Data
@ToString
@DataMapping(source = Project.class)
public class Group {

    @DataValue("projectGroupId")
    private String genGrouId;

    @DataValue("projectArtifactId")
    private String genArtifactId;

    @DataValue(
            expression = {
                    @DataExpression(original = "projectDependencies.projectDependenciesDependency",originalProperty = "projectDependenciesDependencyArtifactId",ruler = DataExpressionRuler.EACH,judge = "fastjson",resultProperty = "projectDependenciesDependencyGroupId")
            }
    )
    private String dependencyVersion;
}
